package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class OSWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("ok.txt");
        OutputStreamWriter osw=new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        osw.write("jkadsgfagkfja");
        osw.write("wuqyeudhsajx");
        System.out.println("写出完毕");
        osw.close();
    }
}
